// Aufgabe_5_5_x_gedrueckt

function setup(){
  createCanvas(400, 200);
  background(100, 200, 200);
  fill(255);
  textSize(25);
  textAlign(CENTER, CENTER);
  text("Niemals die Taste x drücken!!!", 200, 50);
  text("Niemals die Taste x drücken!!!", 200, 100);
  text("Niemals die Taste x drücken!!!", 200, 150);
}

function draw(){
    if(key == "x"){
	background(255, 200, 0);
	noStroke();
      	fill(255, 0, 0);
	textSize(40);
	textAlign(CENTER, CENTER);
   	text("Du hast x gedrückt!!!", 200, 150);
      	fill(220, 0, 0);
	ellipse(170, 65, 40, 40);
	ellipse(230, 65, 40, 40);
      	fill(0);
	ellipse(175, 60, 15, 30);
	ellipse(225, 60, 15, 30);
	stroke(0);
	strokeWeight(20);
	line(150, 40, 200, 60);
	line(200, 60, 250, 40);
	noFill();
	strokeWeight(15);
	arc(200, 150, 100, 100, 1.3*PI, 1.7*PI);
	}
}
